package com.tanhua.dubbo.api.impl;

import com.tanhua.domain.db.Character;
import com.tanhua.dubbo.api.CharacterApi;
import com.tanhua.dubbo.api.OptionsApi;
import com.tanhua.dubbo.mapper.CharacterMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service(timeout = 1000000000)
public class CharacterApiImpl implements CharacterApi {

    @Autowired
    private CharacterMapper characterMapper;

    @Override
    public Character findById(int parseInt) {
        return characterMapper.selectById(parseInt);
    }
}
